//
//  OneRootModel.h
//  lTTheOne
//
//  Created by AA on 2024/3/11.
//

#import <Foundation/Foundation.h>
#import <BGFMDB/BGFMDB.h>
#import <YYKit/NSObject+YYModel.h>
NS_ASSUME_NONNULL_BEGIN

@interface OneRootModel : NSObject

+ (instancetype)initDictForModel:(NSDictionary *)dict;

//模型转字典
- (NSDictionary*)modelForDict;//当前对象直接转换成字典

//指定类型转字典
- (NSDictionary*)modelForDict:(id)model;

//字典转字符串
+ (NSString *)jsonStringFromDictionary:(NSDictionary *)dictionary;
//字符串转字典
+ (NSDictionary *)dictionaryFromJSONString:(NSString *)jsonString;

@end

NS_ASSUME_NONNULL_END
